package com.adtech.core.exception;

/**
 * 异常错误码<BR/>
  错误码由5位数字组成，第一位表示异常级别（1：系统异常，2：业务异常，其他：暂时保留）；
  第二位和第三位表示模块号（00：公共异常，01：登录， 02：系统管理， 03：数据字典，04：通用导入导出，05：基础数据，06：规划任务，07：并网，08：前期项目， 09：前期计划）；
  第四位和第五位为自定义序号。
 * 
 * @author Dormin 
 * @since 2011-11-9 
 * 
 * @Copyright (C) AD Tech Workshop All Right Reserved
 */
public class ErrorCode {
	/*
	 * 公共异常错误码
	 * 系统异常：10000-10099
	 * 业务异常：20000-20099
	 */
	//系统级
	public static final int SYSTEM_UNKNOWN_ERROR = 10000;
	public static final int CLASS_NOT_FOUND = 10001;
	public static final int ILLEGAL_ACCESS = 10002;
	public static final int INVOCATION_TARGET = 10003;
	public static final int INSTANTIATION = 10004;
	public static final int NO_SUCH_METHOD = 10005;
	public static final int OGNL_EXCEPTION = 10006;
	public static final int DATABASE_ERROR = 10007;
	public static final int SESSION_TIMEOUT = 10008;
	public static final int CACHE_EXCEPTION = 10009;
	public static final int URI_PATH_ERROR = 10010;
	//业务级
	public static final int PRIVILEGE_ERROR = 20000;
	public static final int PARSE_QUERY_EXP_ERROR = 20001;

	/*
	 * 通用导入导出
	 * 系统异常：10400-10499
	 * 业务异常：20400-20499
	 */
	//业务级
	public static final int POLICY_EXCEL_NOT_FOUND = 20401;
	public static final int POLICY_EXCEL_READ_ERROR = 20402;
	//	public static final int POLICY_EXCEL_PARSE_ERROR = 20403;
	public static final int POLICY_EXCEL_WRITE_ERROR = 20404;
	public static final int POLICY_SHEET_VALIDATE_ERROR = 20405;
	public static final int POLICY_BASIC_VALIDATE_ERROR = 20406;
	public static final int POLICY_UNIQU_VALIDATE_ERROR = 20407;
	//系统级
	public static final int POLICY_NOT_FOUND = 10400;
	public static final int POLICY_CHART_NOT_FOUND = 10401;
	public static final int POLICY_GRID_NOT_FOUND = 10402;
	public static final int POLICY_IMPORT_NOT_FOUND = 10403;
	public static final int POLICY_GRID_TEMPLATE_ERROR = 10404;
	public static final int POLICY_PARSE_ERROR = 10405;
}
